﻿using System.Configuration;
using System.Data.SqlClient;

namespace Bibilioteca.DataAccess
{
    public class ConexionFactory
    {
        private const string ConnectionStringName = "Biblioteca";

        public static SqlConnection Crear()
        {
            return new SqlConnection(ConfigurationManager.ConnectionStrings[ConnectionStringName].ConnectionString);
        }
    }
}
